package cn.itsource.org.service;

import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;
import cn.itsource.utils.AjaxResult;
import cn.itsource.utils.PageList;
import cn.itsource.vo.TreeDepartment;

import java.util.List;

public interface IDepartmentService {
    List<Department> loadAll();

    List<Department> findByParams(DepartmentQuery query);

    PageList<Department> findPageByParams(DepartmentQuery query);

    AjaxResult bartchDel(List<Long> ids);

    List<Department> findTreeDepartment();

    AjaxResult save(Department dept);
}
